package cn.itsource.pet.service.impl;

import cn.itsource.basic.service.impl.BaseServiceImpl;
import cn.itsource.pet.domain.PetDetail;
import cn.itsource.pet.mapper.PetDetailMapper;
import cn.itsource.pet.query.PetDetailQuery;
import cn.itsource.pet.service.IPetDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
//Propagation.SUPPORTS:支持别人事务
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class PetDetailServiceImpl extends BaseServiceImpl<PetDetail, PetDetailQuery> implements IPetDetailService {

    @Autowired
    private PetDetailMapper petDetailMapper;

    @Override
    public PetDetail selectByPetId(Long id) {
        return petDetailMapper.selectByPetId(id);
    }

}
